﻿<!-- 继承公共文件 -->
<extend name="./Application/Admin/view/layout.html" />
 <block name="mid">
 <h3>权限列表</h3>
 <div class="col-lg-12 col-md-12 col-sm-12">
             <hr>
            
              <a class="glyphicon glyphicon-plus  btn btn-success btn-lg" href="{:U('Admin/rule/add')}">添加权限</a>

             </div>
             <br>
    
     <div class="">
           <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                            <thead>
                                <tr>
                                    <th>id</th>
                                    <th>权限名称</th>
                                    <th>规则</th>
                                     <th>状态</th>
                                     <th>所属层级</th>
                                     <th>操作</th>

                                </tr>
                            </thead>
                            <tbody>
                            <foreach name="list" key="k" item="v">
                                <tr>
                                    <td>{$v.id}</td>
                                    <td>{$v.title}</td>
                                    <td>{$v.name}</td>                                   
                                    <td>{$v['status']==1?'显示':'不显示'} </td>  
                        
                                    <td>{$v.pid}</td>
                                   
                                    <td>
                                    <button class="btn btn-info" type="button">Info</button>
                                    <button class="btn btn-warning" type="button">编辑</button>
                                    <button class="btn btn-danger" type="button">删除</button> 
                                    </td>

                                </tr>
                                </foreach>


                                
                            </tbody>
                        </table>
                        <ul class="pagination">
                              
                              {$page}
                            </ul>
               </div>
             <hr>
            
            
            
         </div>

  </block>















